package com.sugar.queryinfo.module.business.controller.admin.tffinance.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.sugar.queryinfo.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

import static com.sugar.queryinfo.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 真假财务分页 Request VO")
@Data
public class TfFinancePageReqVO extends PageParam {

    @Schema(description = "关键字", example = "张三")
    @NotBlank(message = "查询关键字不能为空")
    private String name;

    @Schema(description = "风险类型（0 暂未收录、1 真实财务、2 撸子）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer riskType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
}